package com.corner.model.cornerservice.domain;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.Expose;

/**
 * Created by Administrator on 2015/8/17，15.53.
 * 描述：
 */
public class CloudFile implements Parcelable {

    @Expose
    private String objectKey;
    @Expose
    private String fileUrl;
    @Expose
    private String meta;
    @Expose
    private String bucketName;

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getObjectKey() {
        return objectKey;
    }

    public void setObjectKey(String objectKey) {
        this.objectKey = objectKey;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getMeta() {
        return meta;
    }

    public void setMeta(String meta) {
        this.meta = meta;
    }

    /**
     * *****************************************************************
     */


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.objectKey);
        dest.writeString(this.fileUrl);
        dest.writeString(this.meta);
        dest.writeString(this.bucketName);
    }

    public CloudFile() {
    }

    protected CloudFile(Parcel in) {
        this.objectKey = in.readString();
        this.fileUrl = in.readString();
        this.meta = in.readString();
        this.bucketName = in.readString();
    }

    public static final Parcelable.Creator<CloudFile> CREATOR = new Parcelable.Creator<CloudFile>() {
        public CloudFile createFromParcel(Parcel source) {
            return new CloudFile(source);
        }

        public CloudFile[] newArray(int size) {
            return new CloudFile[size];
        }
    };
}
